package apiday06homework;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class PwDemo {
    public static void main(String[] args)throws IOException {
        FileOutputStream fos = new FileOutputStream("pw1.txt");
        OutputStreamWriter osr = new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        BufferedWriter bw = new BufferedWriter(osr);
        PrintWriter pw = new PrintWriter(bw);
        pw.println("你是我的");
        pw.println("这是我的");
        System.out.println("写出完毕");
        pw.close();
    }
}
